package com.nanyang.tms.dao.cost;

import com.nanyang.tms.domain.cost.CostPartCountyDO;
import com.nanyang.tms.domain.cost.CostPartCountyVO;
import com.nanyang.tms.domain.cost.CostPricePartCountyVO;
import com.nanyang.tms.domain.saleprice.SalePricePartCountyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>CostPartCountyDao.java</p>
 * <p>Description:()</p>
 *
 * @author lv
 * @date 2022年11月12日 下午04:57:58
 * @Copyright Copyright (c) 2020 www.nanyang.cn Inc. All rights reserved.
 */
@Mapper
public interface CostPartCountyDao {
    /**
     * <p>deleteByPrimaryKey</p>
     * <p>Description:(根据主键删除)</p>
     *
     * @param id
     * @return int
     */
    int deleteByPrimaryKey(Long id);

    /**
     * <p>insert</p>
     * <p>Description:(新增（所有列）)</p>
     *
     * @param record
     * @return int
     */
    int insert(CostPartCountyDO record);


    /**
     * <p>selectByPrimaryKey</p>
     * <p>Description:(根据主键查询)</p>
     *
     * @param id
     * @return CostPartCountyDO
     */
    CostPartCountyDO selectByPrimaryKey(Long id);

    /**
     * <p>updateByPrimaryKeySelective</p>
     * <p>Description:(修改(选择的列))</p>
     *
     * @param record
     * @return int
     */
    int update(CostPartCountyDO record);

    /**
     *
     * @param partCode
     * @return
     */
    List<CostPartCountyVO> selectByCode(String partCode);

    /**
     * 根据分区编码删除
     * @param partCode
     * @return
     */
    int deleteByPartCode(String partCode);

    CostPricePartCountyVO getCostPricePartCountry(@Param(value="productCode")String productCode, @Param(value="countyCode") String countyCode);

}